package com.design.pattern.designPrinciples.compositeAggregate.simple;

/**
 * create by yufeng on 2021/7/3 15:09
 */
public class ProductDao {
    private DBConnection dbConnection;
    public void setDbConnection(DBConnection dbConnection){
        this.dbConnection = dbConnection;
    }

    public void add(){
        String coon = dbConnection.getDbConnection();
        System.out.println("获取了数据库连接");
    }

}
